<?php

use App\Http\Controllers\ActivityZoneController;
use App\Http\Controllers\AddressController;
use App\Http\Controllers\AfterSaleController;
use App\Http\Controllers\AmountController;
use App\Http\Controllers\AreaController;
use App\Http\Controllers\AuctionController;
use App\Http\Controllers\AuctionOrderController;
use App\Http\Controllers\AuditController;
use App\Http\Controllers\BuyWillController;
use App\Http\Controllers\CartController;
use App\Http\Controllers\CouponController;
use App\Http\Controllers\DemoController;
use App\Http\Controllers\CertificationController;
use App\Http\Controllers\DouyinController;
use App\Http\Controllers\FeedbackController;
use App\Http\Controllers\FollowController;
use App\Http\Controllers\HandbookController;
use App\Http\Controllers\HelpController;
use App\Http\Controllers\ImController;
use App\Http\Controllers\IndexController;
use App\Http\Controllers\InviteController;
use App\Http\Controllers\KefuController;
use App\Http\Controllers\LoginController;
use App\Http\Controllers\LogisticController;
use App\Http\Controllers\MessageController;
use App\Http\Controllers\OrderController;
use App\Http\Controllers\PayController;
use App\Http\Controllers\PetController;
use App\Http\Controllers\PlugController;
use App\Http\Controllers\ProductController;
use App\Http\Controllers\ShopCategoryController;
use App\Http\Controllers\ShopProductAlbumController;
use App\Http\Controllers\ProductOrderController;
use App\Http\Controllers\ProductOrderReturnController;
use App\Http\Controllers\SalesRecordController;
use App\Http\Controllers\ShopProductController;
use App\Http\Controllers\ShopProductSpecController;
use App\Http\Controllers\SourceMaterialController;
use App\Http\Controllers\UploadController;
use App\Http\Controllers\UserAccountController;
use App\Http\Controllers\UserAddressController;
use App\Http\Controllers\CollectController;
use App\Http\Controllers\UserController;
use App\Http\Controllers\UserMessageController;
use App\Http\Controllers\VersionController;
use App\Http\Controllers\WechatController;
use App\Http\Controllers\WechatServerSettingController;
use App\Http\Controllers\WithdrawController;
use App\Http\Controllers\ZbBailController;
use App\Http\Controllers\StaffController;
use Illuminate\Support\Facades\Route;

Route::prefix('wechatServerSetting')->group(function () {
    //微信服务器配置
    Route::any('index', [WechatServerSettingController::class, 'index'])->name('wechat.server.setting.index');
    //手机号绑定验证
    Route::post('mobileAuth',
        [WechatServerSettingController::class, 'mobileAuth'])->name('wechat.server.setting.mobileAuth');
    //公众号openid绑定
    Route::any('wechatAuthBack',
        [WechatServerSettingController::class, 'wechatAuthBack'])->name('wechat.server.setting.bind');
    Route::any('unbindWechat',
        [WechatServerSettingController::class, 'unbindWechat'])->name('wechat.server.setting.unbindWechat');
    Route::any('followWechat',
        [WechatServerSettingController::class, 'followWechat'])->name('wechat.server.setting.followWechat');
});
Route::prefix('wechat')->group(function () {
    //售后退款查询
    Route::post('wechatRefundQuery', [WechatController::class, 'wechatRefundQuery'])->name('wechat.wechatRefundQuery');
    //提现回调
    Route::post('notifyWithdraw', [WechatController::class, 'notifyWithdraw'])->name('wechat.notifyWithdraw');
    //测试退款
    Route::post('return', [WechatController::class, 'return'])->name('wechat.return');
    Route::post('query', [WechatController::class, 'query'])->name('wechat.query');
});
Route::prefix('douyin')->group(function () {
    //测试拉起支付
    Route::post('create', [DouyinController::class, 'create'])->name('douyin.create');
});
Route::prefix('productOrder')->group(function () {
    //捡漏商品订单公示
    Route::post('plugAnnounce', [ProductOrderController::class, 'plugAnnounce'])->name('productOrder.plugAnnounce');
});
Route::group(['middleware' => ['signature']], function () {
    //捡漏
    Route::prefix('plug')->group(function () {
        Route::post('paging', [PlugController::class, 'paging'])->name('plug.paging');
        Route::post('list', [PlugController::class, 'list'])->name('plug.list');
    });
    Route::prefix('version')->group(function () {
        //info
        Route::post('info', [VersionController::class, 'info'])->name('version.info');
        //添加
        Route::post('add', [VersionController::class, 'add'])->name('version.add');
    });
    //登录
    Route::prefix('login')->group(function () {
        //发送验证码
        Route::post('sendCode', [LoginController::class, 'sendCode'])->name('login.sendCode');
        //手机登录
        Route::post('mobile', [LoginController::class, 'mobile'])->name('login.mobile');
        //微信登录
        Route::post('wechat', [LoginController::class, 'wechat'])->name('login.wechat');
        //抖音登录
        Route::post('douyin', [LoginController::class, 'douyin'])->name('login.douyin');
        //密码登录
        Route::post('password', [LoginController::class, 'password'])->name('login.password');
    });
    //活动专区
    Route::prefix('activityZone')->group(function () {
        //活动专区
        Route::post('index', [ActivityZoneController::class, 'index'])->name('activityZone.index');
    });
    Route::prefix('category')->group(function () {
        //活动商品分类信息
        Route::post('activityCategory',
            [ShopCategoryController::class, 'activityCategory'])->name('ShopCategory.activityCategory');
    });
    //demo
    Route::prefix('demo')->group(function () {
        Route::any('index', [DemoController::class, 'index'])->name('demo.index');
    });
    //首页
    Route::prefix('index')->group(function () {
        Route::any('module', [IndexController::class, 'module'])->name('index.module');
        Route::post('config', [IndexController::class, 'config'])->name('index.config');
        Route::post('auctionPaging', [IndexController::class, 'auctionPaging'])->name('index.auctionPaging');
        Route::post('bidPaging', [IndexController::class, 'bidPaging'])->name('index.bidPaging');
        Route::post('auctionDetail', [IndexController::class, 'auctionDetail'])->name('index.auctionDetail');
        Route::post('slide', [IndexController::class, 'slide'])->name('index.slide');
        Route::post('auctionNum', [IndexController::class, 'auctionNum'])->name('index.auctionNum');
        Route::post('category', [IndexController::class, 'category'])->name('index.category');
        Route::post('categoryByParentId',
            [IndexController::class, 'categoryByParentId'])->name('index.categoryByParentId');
        Route::post('getProductCategory',
            [IndexController::class, 'getProductCategory'])->name('index.getProductCategory');
        Route::post('agent', [IndexController::class, 'agent'])->name('index.agent');
        Route::post('newCategory', [IndexController::class, 'newCategory'])->name('index.newCategory');
        //首页分类——zlf
        Route::post('goodsCategory', [IndexController::class, 'goodsCategory'])->name('index.goodsCategory');
        //产品列表-zlf
        Route::post('goodsList', [IndexController::class, 'goodsList'])->name('shop.product.goodsList');
        //全部商品分类-zlf
        Route::post('allCategory', [IndexController::class, 'allCategory'])->name('index.allCategory');

    });
    //相册
    Route::prefix('productAlbum')->group(function () {
        //详情
        Route::post('detail', [ShopProductAlbumController::class, 'detail'])->name('productAlbum.detail');
    });
    //产品
    Route::prefix('product')->group(function () {
        //用户产品列表
        Route::post('userPaging', [ShopProductController::class, 'userPaging'])->name('shop.product.userPaging');
        //推荐
        Route::post('recommendList',
            [ShopProductController::class, 'recommendList'])->name('shop.product.recommendList');
        //特价校验
        Route::post('specialOffer', [ShopProductController::class, 'specialOffer'])->name('shop.product.specialOffer');
        //详情
        Route::post('detail', [ShopProductController::class, 'detail'])->name('shop.product.detail');
        //检查库存
        Route::post('checkStock', [ShopProductController::class, 'checkStock'])->name('shop.product.checkStock');
    });

    Route::post('address/read', [DemoController::class, 'read']);

    //退保证金
    Route::any('auctionOrder/refundBail/{id}',
        [AuctionOrderController::class, 'refundBail'])->name('auctionOrder.refundBail');
    Route::group(['middleware' => 'verifyToken'], function () {
        //首页
        Route::prefix('index')->group(function () {
            //拍卖资质
            Route::post('auctionCertification',
                [IndexController::class, 'auctionCertification'])->name('index.auctionCertification');
        });
        //用户
        Route::prefix('user')->group(function () {
            //设置经销商
            Route::post('setAgent', [UserController::class, 'setAgent'])->name('user.setAgent');
            //审核状态信息
            Route::post('auditInfo', [UserController::class, 'auditInfo'])->name('user.auditInfo');
            //用户信息
            Route::post('info', [UserController::class, 'info'])->name('user.info');
            //编辑
            Route::post('edit', [UserController::class, 'edit'])->name('user.edit');
            //退出登录
            Route::post('logout', [UserController::class, 'logout'])->name('user.logout');
            //店铺认证
            Route::post('companyAdd', [UserController::class, 'companyAdd'])->name('user.companyAdd');
            //店铺信息
            Route::post('companyInfo', [UserController::class, 'companyInfo'])->name('user.companyInfo');
            Route::post('cache/{id}', [UserController::class, 'cache'])->name('user.cache');
        });
        //用户
        Route::prefix('staff')->group(function () {
            Route::post('staffList', [StaffController::class, 'staffList'])->name('user.staffList');
            Route::post('add', [StaffController::class, 'add'])->name('user.add');
            Route::post('del', [StaffController::class, 'del'])->name('user.del');

        });

        //商品
        Route::prefix('product')->group(function () {
            //客户咨询商品
            Route::post('customerServicePaging',
                [ShopProductController::class, 'customerServicePaging'])->name('shop.product.customerServicePaging');
            //商品发布和取消
            Route::post('transStatus', [ShopProductController::class, 'transStatus'])->name('shop.product.transStatus');
            //发布商品统计
            Route::post('tj', [ShopProductController::class, 'tj'])->name('shop.product.tj');
            //产品列表日统计
            Route::post('dayTj', [ShopProductController::class, 'dayTj'])->name('shop.product.dayTj');
            //列表
            Route::post('paging', [ShopProductController::class, 'paging'])->name('shop.product.paging');
            //添加
            Route::post('add', [ProductController::class, 'add'])->name('product.add');
            //编辑
            Route::post('edit', [ProductController::class, 'edit'])->name('product.edit');
            //删除
            Route::post('delete', [ProductController::class, 'delete'])->name('product.delete');
            //复制
            Route::post('copy', [ProductController::class, 'copy'])->name('product.copy');
            //复制
            Route::post('adminTj', [ProductController::class, 'adminTj'])->name('product.adminTj');
            //随手买-商品列表
            Route::post('buyWillList', [ProductController::class, 'buyWillList'])->name('product.buyWillList');
            //随手买-规格列表
            Route::post('buyWillSpecsList',
                [ProductController::class, 'buyWillSpecsList'])->name('product.buyWillSpecsList');
        });
        //商品订单售后
        Route::prefix('productOrderReturn')->group(function () {
            //分页
            Route::post('paging', [ProductOrderReturnController::class, 'paging'])->name('productOrderReturn.paging');
            //用户分页
            Route::post('userPaging',
                [ProductOrderReturnController::class, 'userPaging'])->name('productOrderReturn.userPaging');
            //商家分页
            Route::post('sellerPaging',
                [ProductOrderReturnController::class, 'sellerPaging'])->name('productOrderReturn.sellerPaging');
            //详情
            Route::post('detail', [ProductOrderReturnController::class, 'detail'])->name('productOrderReturn.detail');
            //用户详情
            Route::post('userDetail',
                [ProductOrderReturnController::class, 'userDetail'])->name('productOrderReturn.userDetail');
            //商家详情
            Route::post('sellerDetail',
                [ProductOrderReturnController::class, 'sellerDetail'])->name('productOrderReturn.sellerDetail');
            //申请售后
            Route::post('apply', [ProductOrderReturnController::class, 'apply'])->name('productOrderReturn.apply');
            //买家填写退款快递号
            Route::post('addExpress',
                [ProductOrderReturnController::class, 'addExpress'])->name('productOrderReturn.addExpress');
            //审核
            Route::post('audit', [ProductOrderReturnController::class, 'audit'])->name('productOrderReturn.audit');
            //确认
            Route::post('confirm',
                [ProductOrderReturnController::class, 'confirm'])->name('productOrderReturn.confirm');
            //删除
            Route::post('delete', [ProductOrderReturnController::class, 'delete'])->name('productOrderReturn.delete');
            //物流查询-作废
            Route::post('logistics',
                [ProductOrderReturnController::class, 'logistics'])->name('productOrderReturn.logistics');
            //取消售后申请
            Route::post('cancel', [ProductOrderReturnController::class, 'cancel'])->name('productOrderReturn.cancel');
            //商家收货地址
            Route::post('sellerAddressList', [
                ProductOrderReturnController::class, 'sellerAddressList',
            ])->name('productOrderReturn.sellerAddressList');
            //同意并等待退货
            Route::post('agreeRefundProduct', [
                ProductOrderReturnController::class, 'agreeRefundProduct',
            ])->name('productOrderReturn.agreeRefundProduct');
            //取消退货申请
            Route::post('cancelRefundProduct', [
                ProductOrderReturnController::class, 'cancelRefundProduct',
            ])->name('productOrderReturn.cancelRefundProduct');
        });
        //商品订单
        Route::prefix('productOrder')->group(function () {
            //分页
            Route::post('paging', [ProductOrderController::class, 'paging'])->name('productOrder.paging');
            //用户分页
            Route::post('userPaging', [ProductOrderController::class, 'userPaging'])->name('productOrder.userPaging');
            //商家分页
            Route::post('sellerPaging',
                [ProductOrderController::class, 'sellerPaging'])->name('productOrder.sellerPaging');
            //用户详情
            Route::post('userDetail', [ProductOrderController::class, 'userDetail'])->name('productOrder.userDetail');
            //商家详情
            Route::post('sellerDetail',
                [ProductOrderController::class, 'sellerDetail'])->name('productOrder.sellerDetail');
            //下单验证
            Route::post('check', [ProductOrderController::class, 'check'])->name('productOrder.check');
            //下单
            Route::post('create', [ProductOrderController::class, 'create'])->name('productOrder.create');
            //取消
            Route::post('cancel', [ProductOrderController::class, 'cancel'])->name('productOrder.cancel');
            //拉起支付
            Route::post('payment', [ProductOrderController::class, 'payment'])->name('productOrder.payment');
            //用户删除订单confirmBuy
            Route::post('userDelete', [ProductOrderController::class, 'userDelete'])->name('productOrder.userDelete');
            //确认收货
            Route::post('confirm', [ProductOrderController::class, 'confirm'])->name('productOrder.confirm');
            //订单统计
            Route::post('tj', [ProductOrderController::class, 'tj'])->name('productOrder.tj');
            //订单统计
            Route::post('extTj', [ProductOrderController::class, 'extTj'])->name('productOrder.extTj');
            //发货
            Route::post('delivery', [ProductOrderController::class, 'delivery'])->name('productOrder.delivery');
            //物流查询
            Route::post('logistics', [ProductOrderController::class, 'logistics'])->name('productOrder.logistics');
            //自提
            Route::post('selfPickup', [ProductOrderController::class, 'selfPickup'])->name('productOrder.selfPickup');
            //商家备注
            Route::post('sellerRemark',
                [ProductOrderController::class, 'sellerRemark'])->name('productOrder.sellerRemark');
            //客户咨询商品
            Route::post('customerServicePaging',
                [ProductOrderController::class, 'customerServicePaging'])->name('productOrder.customerServicePaging');
        });
        Route::prefix('logistic')->group(function () {
            Route::post('send', [LogisticController::class, 'send'])->name('logistic.send');
            //物流查询
            Route::post('logisticInfo', [LogisticController::class, 'logisticInfo'])->name('logistic.logisticInfo');
            //编辑
            Route::post('edit', [LogisticController::class, 'edit'])->name('logistic.edit');
        });
        //售后
        Route::prefix('afterSale')->group(function () {
            //拍卖订单售后申请
            Route::post('auctionApply', [AfterSaleController::class, 'auctionApply'])->name('afterSale.auctionApply');
            //拍卖订单售后详情
            Route::post('auctionDetail',
                [AfterSaleController::class, 'auctionDetail'])->name('afterSale.auctionDetail');
            //拍卖订单售后列表
            Route::post('afterSaleList',
                [AfterSaleController::class, 'afterSaleList'])->name('afterSale.afterSaleList');
            //拍卖订单售后取消
            Route::post('auctionCancel',
                [AfterSaleController::class, 'auctionCancel'])->name('afterSale.auctionCancel');
            //售后-买家发货
            Route::post('userDelivery', [AfterSaleController::class, 'userDelivery'])->name('afterSale.userDelivery');
            //物流信息查询
            Route::post('afterSale/logistics', [AfterSaleController::class, 'logistics'])->name('afterSale.logistics');
            Route::post('refund', [AfterSaleController::class, 'refund'])->name('afterSale.refund');

        });
        //拍卖订单
        Route::prefix('auctionOrder')->group(function () {
            //发货
            Route::post('delivery', [AuctionOrderController::class, 'delivery'])->name('auctionOrder.delivery');
            //物流信息查询
            Route::post('logistics', [AuctionOrderController::class, 'logistics'])->name('auctionOrder.logistics');
            //设置拍卖订单收货地址
            Route::post('address', [AuctionOrderController::class, 'address'])->name('auctionOrder.address');
            //拍卖订单确认收货
            Route::post('confirmReceipt',
                [AuctionOrderController::class, 'confirmReceipt'])->name('auctionOrder.confirmReceipt');
            //删除
            Route::post('userDelete', [AuctionOrderController::class, 'userDelete'])->name('auctionOrder.userDelete');
            //商家删除
            Route::post('sellerDelete',
                [AuctionOrderController::class, 'sellerDelete'])->name('auctionOrder.sellerDelete');
            //拍卖订单分页-用户
            Route::post('userPaging', [AuctionOrderController::class, 'userPaging'])->name('auctionOrder.userPaging');
            //拍卖订单分页-商家
            Route::post('sellerPaging',
                [AuctionOrderController::class, 'sellerPaging'])->name('auctionOrder.sellerPaging');
        });
        //订单
        Route::prefix('order')->group(function () {
            Route::post('coupon', [OrderController::class, 'coupon'])->name('order.coupon');
        });
        //优惠券
        Route::prefix('coupon')->group(function () {
            Route::post('paging', [CouponController::class, 'paging'])->name('coupon.paging');
            Route::post('claimedPaging', [CouponController::class, 'claimedPaging'])->name('coupon.claimedPaging');
            Route::post('claimCoupon', [CouponController::class, 'claimCoupon'])->name('coupon.claimCoupon');
            Route::post('myPaging', [CouponController::class, 'myPaging'])->name('coupon.myPaging');
            Route::post('receive', [CouponController::class, 'receive'])->name('coupon.receive');
            Route::post('noUseCount', [CouponController::class, 'noUseCount'])->name('coupon.noUseCount');
        });

        //邀请
        Route::prefix('invite')->group(function () {
            Route::post('list', [InviteController::class, 'list'])->name('invite.list');
            Route::post('orderPage', [InviteController::class, 'orderPage'])->name('invite.orderPage');
        });

        //产品相册
        Route::prefix('productAlbum')->group(function () {
            Route::post('add', [ShopProductAlbumController::class, 'add'])->name('productAlbum.list');
            Route::post('edit', [ShopProductAlbumController::class, 'edit'])->name('productAlbum.edit');
            Route::post('delete', [ShopProductAlbumController::class, 'delete'])->name('productAlbum.delete');
            Route::post('paging', [ShopProductAlbumController::class, 'paging'])->name('productAlbum.paging');
            Route::post('transShareStatus',
                [ShopProductAlbumController::class, 'transShareStatus'])->name('productAlbum.transShareStatus');
        });

        //购物车
        Route::prefix('cart')->group(function () {
            //列表
            Route::post('list', [CartController::class, 'list'])->name('cart.list');
            //添加
            Route::post('add', [CartController::class, 'add'])->name('cart.add');
            //编辑
            Route::post('edit', [CartController::class, 'edit'])->name('cart.edit');
            //删除
            Route::post('delete', [CartController::class, 'delete'])->name('cart.delete');
            //数量
            Route::post('count', [CartController::class, 'count'])->name('cart.count');
        });

        //提现
        Route::prefix('withdraw')->group(function () {
            //提现记录
            Route::post('paging', [WithdrawController::class, 'paging'])->name('withdraw.paging');
            //统计
            Route::post('tj', [WithdrawController::class, 'tj'])->name('withdraw.tj');
            //申请
            Route::post('apply', [WithdrawController::class, 'apply'])->name('withdraw.apply');
        });
        //提现账户
        Route::prefix('userAccount')->group(function () {
            //添加提现账户
            Route::post('add', [UserAccountController::class, 'add'])->name('userAccount.add');
            //解绑提现账户
            Route::post('release', [UserAccountController::class, 'release'])->name('userAccount.release');
            //列表
            Route::post('list', [UserAccountController::class, 'list'])->name('userAccount.list');
            //微信账号
            Route::post('wechat', [UserAccountController::class, 'wechat'])->name('userAccount.wechat');
        });
        //地址-作废
        Route::prefix('userAddress')->group(function () {
            Route::post('/paging', [UserAddressController::class, 'paging'])->name('userAddress.paging');
            Route::post('/add', [UserAddressController::class, 'add'])->name('userAddress.add');
            Route::post('/edit', [UserAddressController::class, 'edit'])->name('userAddress.edit');
            Route::post('/delete', [UserAddressController::class, 'delete'])->name('userAddress.delete');
            Route::post('/default', [UserAddressController::class, 'default'])->name('userAddress.default');
        });
        //账户流水
        Route::prefix('amount')->group(function () {
            //账户流水
            Route::post('paging', [AmountController::class, 'paging'])->name('amount.paging');
            //账户流水
            Route::post('tj', [AmountController::class, 'tj'])->name('amount.tj');
            //余额
            Route::post('balance', [AmountController::class, 'balance'])->name('amount.balance');
        });

        //销售记录
        Route::prefix('salesRecord')->group(function () {
            //销售记录
            Route::post('paging', [SalesRecordController::class, 'paging'])->name('salesRecord.paging');
            //统计
            Route::post('tj', [SalesRecordController::class, 'tj'])->name('salesRecord.tj');
        });

        //资质
        Route::prefix('certification')->group(function () {
            //分销资质申请
            Route::post('apply', [CertificationController::class, 'apply'])->name('invite.certification.apply');
            //分销资质申请
            Route::post('allDetail',
                [CertificationController::class, 'allDetail'])->name('invite.certification.allDetail');
        });
        //拍卖
        Route::prefix('auction')->group(function () {
            //分页
            Route::post('paging', [AuctionController::class, 'paging'])->name('auction.paging');
            //添加
            Route::post('add', [AuctionController::class, 'add'])->name('auction.add');
            //编辑
            Route::post('edit', [AuctionController::class, 'edit'])->name('auction.edit');
            //举报
            Route::post('report', [AuctionController::class, 'report'])->name('auction.report');
            //上下架
            Route::post('editStatus', [AuctionController::class, 'editStatus'])->name('auction.editStatus');
            //详情
            Route::post('detail', [AuctionController::class, 'detail'])->name('auction.detail');
            //删除
            Route::post('delete', [AuctionController::class, 'delete'])->name('auction.delete');
            //出价
            Route::post('bid', [AuctionController::class, 'bid'])->name('auction.bid');
            //参拍记录
            Route::post('bidRecord', [AuctionController::class, 'bidRecord'])->name('auction.bidRecord');
            //校验参拍人资格
            Route::post('checkBail', [AuctionController::class, 'checkBail'])->name('auction.checkBail');
            //校验发布人资格
            Route::post('publishCertification',
                [AuctionController::class, 'publishCertification'])->name('auction.publishCertification');
            //数量统计
            Route::post('numTj', [AuctionController::class, 'numTj'])->name('auction.numTj');
            //申请资质
            Route::post('applyCertification',
                [AuctionController::class, 'applyCertification'])->name('auction.applyCertification');
            //拍卖商品关注或取消
            Route::post('followOrCancel', [AuctionController::class, 'followOrCancel'])->name('auction.followOrCancel');
            //修改店铺信息
            Route::post('certificationEdit',
                [AuctionController::class, 'certificationEdit'])->name('auction.certificationEdit');
            Route::post('auctionCertificationEdit',
                [AuctionController::class, 'certificationEdit'])->name('auction.auctionCertificationEdit');
            //拍卖商品关注列表
            Route::post('followPaging', [AuctionController::class, 'followPaging'])->name('auction.followPaging');
            //一口价购买
            Route::post('buy', [AuctionController::class, 'buy'])->name('auction.buy');
            //指定价格出价
            Route::post('assign', [AuctionController::class, 'assign'])->name('auction.assign');
            //复制
            Route::post('copy', [AuctionController::class, 'copy'])->name('auction.copy');
            Route::prefix('order')->group(function () {
                Route::post('detail', [AuctionOrderController::class, 'detail'])->name('auction.order.detail');
            });
        });
        //宠物管理
        Route::prefix('pet')->group(function () {
            Route::post('paging', [PetController::class, 'paging'])->name('pet.paging');
            Route::post('detail', [PetController::class, 'detail'])->name('pet.detail');
            Route::post('delete', [PetController::class, 'delete'])->name('pet.delete');
            Route::post('add', [PetController::class, 'add'])->name('pet.add');
            Route::post('edit', [PetController::class, 'edit'])->name('pet.edit');
            Route::post('addBatch', [PetController::class, 'addBatch'])->name('pet.addBatch');
        });
        //意见反馈
        Route::prefix('feedback')->group(function () {
            Route::post('paging', [FeedbackController::class, 'paging'])->name('feedback.paging');
            Route::post('detail', [FeedbackController::class, 'detail'])->name('feedback.detail');
            Route::post('add', [FeedbackController::class, 'add'])->name('feedback.add');
        });
        //收藏
        Route::prefix('collect')->group(function () {
            Route::post('paging', [CollectController::class, 'paging'])->name('collect.paging');
            Route::post('detail', [CollectController::class, 'detail'])->name('collect.detail');
            Route::post('add', [CollectController::class, 'add'])->name('collect.add');
            Route::post('delete', [CollectController::class, 'delete'])->name('collect.delete');
        });
        //实名认证
        Route::post('realNameAuth/add', [AuditController::class, 'realNameAuth'])->name('audit.realNameAuth');
        //im
        Route::prefix('im')->group(function () {
            Route::post('paging', [ImController::class, 'paging'])->name('im.paging');
            Route::post('new', [ImController::class, 'new'])->name('im.new');
            Route::post('add', [ImController::class, 'add'])->name('im.add');
            Route::post('userInfo', [ImController::class, 'userInfo'])->name('im.userInfo');
        });
        //文件上传
        Route::prefix('upload')->group(function () {
            Route::post(null, [UploadController::class, 'upload'])->name('upload');
            Route::post('image', [UploadController::class, 'image'])->name('upload.image');
            Route::post('video', [UploadController::class, 'video'])->name('upload.video');
        });
        //商品规格
        Route::prefix('shopProductSpec')->group(function () {
            Route::post('paging', [ShopProductSpecController::class, 'paging'])->name('shopProductSpec.paging');
            Route::post('add', [ShopProductSpecController::class, 'add'])->name('shopProductSpec.add');
            Route::post('edit', [ShopProductSpecController::class, 'edit'])->name('shopProductSpec.edit');
            Route::post('detail', [ShopProductSpecController::class, 'detail'])->name('shopProductSpec.detail');
            Route::post('delete', [ShopProductSpecController::class, 'delete'])->name('shopProductSpec.delete');
            Route::post('editPrice',
                [ShopProductSpecController::class, 'editPrice'])->name('shopProductSpec.editPrice');
            Route::post('editStock',
                [ShopProductSpecController::class, 'editStock'])->name('shopProductSpec.editStock');
        });
        //手册
        Route::prefix('handbook')->group(function () {
            Route::post('paging', [HandbookController::class, 'paging'])->name('handbook.paging');
            Route::post('add', [HandbookController::class, 'add'])->name('handbook.add');
            Route::post('edit', [HandbookController::class, 'edit'])->name('handbook.edit');
            Route::post('detail', [HandbookController::class, 'detail'])->name('handbook.detail');
            Route::post('delete', [HandbookController::class, 'delete'])->name('handbook.delete');
        });
        //支付
        Route::prefix('pay')->group(function () {
            Route::post('auction', [PayController::class, 'auction'])->name('pay.auction');
            Route::post('auctionBail', [PayController::class, 'auctionBail'])->name('pay.auctionBail');
        });
        //userMessage
        Route::prefix('userMessage')->group(function () {
            Route::post('paging', [UserMessageController::class, 'paging'])->name('userMessage.paging');
            Route::post('add', [UserMessageController::class, 'add'])->name('userMessage.add');
            Route::post('detail', [UserMessageController::class, 'detail'])->name('userMessage.detail');
            Route::post('delete', [UserMessageController::class, 'delete'])->name('userMessage.delete');
            Route::post('count', [UserMessageController::class, 'count'])->name('userMessage.count');
            Route::post('read', [UserMessageController::class, 'read'])->name('userMessage.read');
            Route::post('newTime', [UserMessageController::class, 'newTime'])->name('userMessage.newTime');
        });
        //素材
        Route::prefix('sourceMaterial')->group(function () {
            Route::post('add', [sourceMaterialController::class, 'add'])->name('sourceMaterial.add');
            Route::post('paging', [sourceMaterialController::class, 'paging'])->name('sourceMaterial.paging');
            Route::post('detail', [sourceMaterialController::class, 'detail'])->name('sourceMaterial.detail');
            Route::post('submitRecordPaging',
                [sourceMaterialController::class, 'submitRecordPaging'])->name('sourceMaterial.submitRecordPaging');
            Route::post('submitRecordDelete',
                [sourceMaterialController::class, 'submitRecordDelete'])->name('sourceMaterial.submitRecordDelete');
        });
        //随手买
        Route::prefix('buyWill')->group(function () {
            Route::post('add', [BuyWillController::class, 'add'])->name('buyWill.add');
            Route::post('edit', [BuyWillController::class, 'edit'])->name('buyWill.edit');
            Route::post('transShelfStatus',
                [BuyWillController::class, 'transShelfStatus'])->name('buyWill.transShelfStatus');
            Route::post('rand', [BuyWillController::class, 'rand'])->name('buyWill.rand');
            Route::post('delete', [BuyWillController::class, 'delete'])->name('buyWill.delete');
        });
        //关注店铺
        Route::prefix('follow')->group(function () {
            Route::post('addOrCancel', [FollowController::class, 'addOrCancel'])->name('follow.addOrCancel');
            Route::post('userPaging', [FollowController::class, 'userPaging'])->name('follow.userPaging');
            Route::post('sellerPaging', [FollowController::class, 'sellerPaging'])->name('follow.sellerPaging');
        });
        //客服
        Route::prefix('kefu')->group(function () {
            Route::post('status', [KefuController::class, 'status'])->name('kefu.status');
            Route::post('paging', [KefuController::class, 'paging'])->name('kefu.paging');
            Route::post('changeStatus', [KefuController::class, 'changeStatus'])->name('kefu.changeStatus');
            Route::post('turn', [KefuController::class, 'turn'])->name('kefu.turn');
            Route::post('end', [KefuController::class, 'end'])->name('kefu.end');
            Route::post('consultList', [KefuController::class, 'consultList'])->name('kefu.consultList');
        });
        //message
        Route::prefix('message')->group(function () {
            Route::post('paging', [MessageController::class, 'paging'])->name('message.paging');
            Route::post('new', [MessageController::class, 'new'])->name('message.new');
            Route::post('add', [MessageController::class, 'add'])->name('message.add');
            Route::post('addObject', [MessageController::class, 'addObject'])->name('message.addObject');
            Route::post('userInfo', [MessageController::class, 'userInfo'])->name('message.userInfo');
            Route::post('messageList', [MessageController::class, 'messageList'])->name('message.messageList');
            Route::post('read', [MessageController::class, 'read'])->name('message.read');
            Route::post('kefu', [MessageController::class, 'kefu'])->name('message.kefu');
            Route::post('count', [MessageController::class, 'count'])->name('message.count');
        });
        //关注店铺
        Route::prefix('follow')->group(function () {
            Route::post('addOrCancel', [FollowController::class, 'addOrCancel'])->name('follow.addOrCancel');
            Route::post('userPaging', [FollowController::class, 'userPaging'])->name('follow.userPaging');
            Route::post('sellerPaging', [FollowController::class, 'sellerPaging'])->name('follow.sellerPaging');
        });
        //直播保证金
        Route::prefix('zbBail')->group(function () {
            Route::post('payment', [ZbBailController::class, 'payment'])->name('zbCash.payment');
            Route::post('refund', [ZbBailController::class, 'refund'])->name('zbCash.refund');
            Route::post('current', [ZbBailController::class, 'current'])->name('zbCash.current');
        });
        //捡漏
        Route::prefix('plug')->group(function () {
            Route::post('create', [PlugController::class, 'create'])->name('plug.create');
            Route::post('add', [PlugController::class, 'add'])->name('plug.add');
            Route::post('edit', [PlugController::class, 'edit'])->name('plug.edit');
            Route::post('del', [PlugController::class, 'del'])->name('plug.del');
            Route::post('upOrDown', [PlugController::class, 'upOrDown'])->name('plug.upOrDown');
            Route::post('pList', [PlugController::class, 'pList'])->name('plug.pList');
            Route::post('detail', [PlugController::class, 'detail'])->name('plug.detail');
        });
        //行政区划
        Route::prefix('area')->group(function () {
            Route::post('areaInfo', [AreaController::class, 'areaInfo'])->name('area.areaInfo');
            Route::post('all', [AreaController::class, 'all'])->name('area.all');
        });
        //地址管理
        Route::prefix('address')->group(function () {
            Route::post('add', [AddressController::class, 'add'])->name('address.add');
            Route::post('delete', [AddressController::class, 'delete'])->name('address.delete');
            Route::post('edit', [AddressController::class, 'edit'])->name('address.edit');
            Route::post('paging', [AddressController::class, 'paging'])->name('address.paging');
            Route::post('default', [AddressController::class, 'default'])->name('address.default');
            Route::post('defaultInfo', [AddressController::class, 'defaultInfo'])->name('address.defaultInfo');
        });
        //助力
        Route::prefix('help')->group(function () {
            Route::post('create', [HelpController::class, 'create'])->name('help.create');
            Route::post('get', [HelpController::class, 'get'])->name('help.get');
            Route::post('recordPaging', [HelpController::class, 'recordPaging'])->name('help.recordPaging');
            Route::post('cut', [HelpController::class, 'cut'])->name('help.cut');
            Route::post('order', [HelpController::class, 'order'])->name('help.order');
        });
    });
});
